<?php 
include('../common/common.php');
include('../common/checksession.php');
checksession("../index.php");
include('../../inc/conn.php');

$gurl=$_SERVER['HTTP_REFERER'];
$aid=$_GET['aid'];
isnum($aid,"文档错误","../moduls/catalog_main.php");
if(!strstr($gurl,"content_list.php")){
	ShowMsg_h("操作失败!","../moduls/catalog_main.php");
	exit;
}

$db=db_connect();//数据库连接
$sql=update_sql("`".PRETABLE."arcmain`","`isdel`='1'","`id`='".$aid."'");
if($db->query($sql)){
	ShowMsg_h("成功删除!",$gurl);
}else{
	ShowMsg_h("操作失败,请重新尝试!",$gurl);
	exit;
}

$db->close();

?>